<?php
namespace common\models;

use Yii;
use yii\base\model;
use common\models\User;

class PasswordForm extends model
{
	public $password_hash;
	public $pass1;
	public $pass2;

	public static function tableName()
    {
        return 'user';
    }

     public function rules()
    {
        return [
            // username and password_hash_hash are both required
            [['password_hash', 'pass1','pass2'], 'required'],
            // rememberMe must be a boolean value
           // ['rememberMe', 'boolean'],
            // password_hash_hash is validated by validatepassword_hash_hash()
          //['verifyCode', 'required'],
            //['verifyCode', 'captcha'],

        ];
    }

    public function attributeLabels()
    {
        return [
            'password_hash' => '当前密码',
            'pass1' => '新密码',
            'pass2' => '确认密码',
        ];
    }

	
}